package com.juc.concurrency.basic.createthread;

/**
 * @author huangweiyue
 * @description extends Thread创建线程 无法拿到任务结果
 * @date Created in 2021-07-28
 */
public class ExtendsThread {
    public static void main(String[] args) {

        MyThread thread = new MyThread();
        thread.start();
    }

    public static class MyThread extends Thread {
        @Override
        public void run() {
            System.out.println("I am a child thread");
        }
    }
}
